package com.example.springcloudmodelserver.entity;

import javax.validation.constraints.FutureOrPresent;
import javax.validation.constraints.NotBlank;
import java.util.Date;

public class Model {
    private String modelid;
    @NotBlank(message = "模型名称不能为空")
    private String modelname;
    @NotBlank(message = "版本号不能为空")
    private String patentnum;
    @NotBlank(message = "模型类别不能为空")
    private String modeltype;
    @FutureOrPresent(message = "更新时间错误")
    private Date updatetime;
    private String serverlocate;
    private double price;
    private String username;
    @NotBlank(message = "运行语言不能为空")
    private String language;
    @NotBlank(message = "硬件环境不能为空")
    private String hardware;
    @NotBlank(message = "软件环境不能为空")
    private String software;
    @NotBlank(message = "框架不能为空")
    private String frame;
    @NotBlank(message = "依赖不能为空")
    private String rely;
    private String funpath;
    private String funmd5;

    public String getModelname() {
        return modelname;
    }

    public void setModelname(String modelname) {
        this.modelname = modelname;
    }

    public String getPatentnum() {
        return patentnum;
    }

    public void setPatentnum(String patentnum) {
        this.patentnum = patentnum;
    }

    public String getModeltype() {
        return modeltype;
    }

    public void setModeltype(String modeltype) {
        this.modeltype = modeltype;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getServerlocate() {
        return serverlocate;
    }

    public void setServerlocate(String serverlocate) {
        this.serverlocate = serverlocate;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getHardware() {
        return hardware;
    }

    public void setHardware(String hardware) {
        this.hardware = hardware;
    }

    public String getSoftware() {
        return software;
    }

    public void setSoftware(String software) {
        this.software = software;
    }

    public String getFrame() {
        return frame;
    }

    public void setFrame(String frame) {
        this.frame = frame;
    }

    public String getRely() {
        return rely;
    }

    public void setRely(String rely) {
        this.rely = rely;
    }

    public String getModelid() {
        return modelid;
    }

    public void setModelid(String modelid) {
        this.modelid = modelid;
    }

    public String getFunpath() {
        return funpath;
    }

    public void setFunpath(String funpath) {
        this.funpath = funpath;
    }

    public String getFunmd5() {
        return funmd5;
    }

    public void setFunmd5(String funmd5) {
        this.funmd5 = funmd5;
    }
}
